using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Yozeev.SystemConfig;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 结账单明细
    /// </summary>
    public class AccountDetail: ByBranchEntity<Guid>
    {
        /// <summary>
        /// 结账单标识
        /// </summary>
        [Required(ErrorMessage = "结账单标识不能为空")]
        public Guid AccountId { get; set; }
        [ForeignKey("AccountId")]
        public virtual Account Account { get; set; }
        /// <summary>
        /// 订单明细标识
        /// </summary>
        [Required(ErrorMessage = "票种标识不能为空")]
        public Guid ActivityDetailId { get; set; }
        [ForeignKey("ActivityDetailId")]
        public virtual ActivityDetail ActivityDetail { get; set; }

    }
}
